package com.zry.traced.utils;

import android.text.InputFilter;
import android.text.Spanned;
import android.util.Log;

public class InputCodeFilter implements InputFilter {

    @Override
    public CharSequence filter(CharSequence source, int arg1, int arg2, Spanned arg3, int arg4, int arg5) {
        String sourceStr = source.toString();
        String[] sourceStrArray = sourceStr.split("/");
        String editCode = sourceStrArray[sourceStrArray.length - 1];
        Log.e("editCode", editCode);
        return editCode;
    }
}
